#pragma once


class CEdge
{
private: 
	XINT32 m_nFixed16X;
	XINT32 m_nFixed16Dx;
	XINT32 m_nStartY;
	XINT32 m_nEndY;
	XINT16 m_nWindingDirection;
	XINT8 m_nClipEdge;
private: 
	XINT8 m_fFixup;
public: 
	CEdge();
	void SetEdge(struct XPOINT * pPointStart, struct XPOINT * pPointEnd);
	XINT32 GetSubpixelTop();
	XINT32 GetSubpixelBottom();
	XINT32 GetSubpixelLeft();
	XINT32 GetSubpixelRight();
	XINT32 IsEdgeLessThan(const CEdge & other);
	XINT32 IsClipEdge();
	XINT64 GetSortKey();
	void SetClipEdge(XINT32 nClipEdge);
	void SetFixup(XINT32);
	XINT32 GetDx();
};
